﻿using Microsoft.AspNetCore.Mvc.Rendering;
using Models.Managemen;
using ModelToDto;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
using System.Threading.Tasks;

namespace IService.Managemen
{
    /// <summary>
    /// 菜单接口=ummary>
    public interface IMenueService : IBaseService
    {
        List<Mp_Menue> GetMenueList(Expression<Func<Mp_Menue, bool>> expression, int leveL = 0);
        /// <summary>
        /// 根据用户id层级查询归属于当前用户权限内的菜单功能
        /// </summary>
        /// <param name="userid"></param>
        /// <returns></returns>
        //  List<MenueDTO> QueryMenueAll(int userid);


        //添加按钮功能不能有重复按钮
        Task<bool> AddMuneBtn(Mp_Button mp_Button);
        /// <summary>
        /// 给页面分配相关按钮功能
        /// </summary>
        /// <param name="mp_MenuButton"></param>
        /// <returns></returns>

        Task<bool> AssigMuneBtn(int muneId, List<int> btnId);
        /// <summary>
        /// 查询这个菜单所有按钮包括选中的
        /// </summary>
        /// <param name="muneId"></param>
        /// <returns></returns>
        Task<List<SelectListItem>> GetAllMunBtn(int muneId);

    }
}
